package com.sphsine.bip;

import com.javaweb.common.config.CommonConfig;

import java.io.InputStream;

public class SHYPConfig extends DDKJConfig{
    private boolean useSandbox;
    @Override
    String getAppID() {
        return useSandbox?CommonConfig.appIdSandbox:CommonConfig.appId;
    }

    @Override
    String getEnterpriseId() {
        return CommonConfig.appId;
    }

    @Override
    public void  setUseSandbox(boolean useSandbox) {
        this.useSandbox = useSandbox;
    }

    @Override
    boolean getUseSandbox() {
        return this.useSandbox;
    }

    @Override
    String getSecret() {
        return useSandbox?CommonConfig.appSecretSandbox:CommonConfig.appSecret;
    }


    @Override
    public ISHYPDomain getSHYPDomain() {
        return new SHYPDomain();
    }

}
